package com.hup.sidebar.view.touch;

import android.view.MotionEvent;

import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.ToString;

/**
 * @author hugan
 * @date 2025/11/18
 */
@ToString
@EqualsAndHashCode
public class MyMotionEvent {
    @Getter
    private final int actionMasked;
    @Getter
    private final int rawX;
    @Getter
    private final int rawY;
    @Getter
    private final int toolType;

    public MyMotionEvent(MotionEvent e) {
        actionMasked = e.getActionMasked();
        rawX = (int) e.getRawX();
        rawY = (int) e.getRawY();
        toolType = e.getToolType(0);
    }

}
